package com.zyk.hetong.kafka;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Component;

import java.io.File;
import java.util.HashMap;

@Component
public class KafkaProducerTest {

    @Autowired
    KafkaTemplate kafkaTemplate;



    public void test() {
        kafkaTemplate.send("test0326", "",new HashMap<>());
    }

}
